package com.wdc.hutool;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

import java.io.IOException;
import java.net.URL;

public class JsoupDemo {
    public  static void main(String[] args) throws IOException {

        String url = "https://search.jd.com/Search?keyword=java";
        Document parse = Jsoup.parse(new URL(url), 30000);
        Element element = parse.getElementById("J_cate");
        System.out.println(parse);


    }

}
